<?php
if (!defined('SITE_TOP_PATH')) {
	define('SITE_TOP_PATH', dirname(__FILE__) . '/');
}
session_start();
//Application director (Project Director)
define('APP_PATH', dirname(__FILE__). '/');
define('APP_NAME', 'default');
define('CONTROLLER_PATH', SITE_TOP_PATH . 'controllers/');
define('MODEL_PATH', CONTROLLER_PATH . 'models/');
define('TEMPLATE_PATH', APP_PATH . 'templates/');
define('LIB_PATH', SITE_TOP_PATH . 'libs/');
define('CONFIG_PATH', SITE_TOP_PATH . 'config/');


// 全局文件
require_once (SITE_TOP_PATH . 'global.php');


//控制器, 由其调用相应的action
require_once (CONTROLLER_PATH . APP_NAME . '_controller.php');

?>